#ifndef LINEARFILTERACTION_H
#define LINEARFILTERACTION_H
#include "AbstractAction.h"
#include "Ptr.hpp"
#include "Core.h"
#include "FilterBase.h"


using namespace OOPUtils;



class LinearFilterAction : public AbstractAction
{
public:

	LinearFilterAction ();

	virtual void updatePreview (QRect viewport);

	virtual void handleStartEvent ();

	virtual void rejectAction ();

	virtual void applyAction ();

	void setFilterMethod (Ptr< FilterBase > pFilter);

private:

	Core< float > _core;

	Ptr< FilterBase > _pFilter;

};

#endif // FILTERACTION_H
